def str_hui(a):
    if a[::-1] == a[:]:
        print('是回文字符串')
    else:
        print('不是回文字符串')
str_hui('abcba')
a = 'abcba'
print(a[::-1])
